<template>
	<view class="content">
		<view class="title" style="margin-top: 200rpx;">我们应该</view>
		<view class="title">怎么称呼您？</view>

		<view style="margin-top: 20rpx;">
			<input class="input" v-model="data.nickname" type="text" placeholder=" 请输入昵称" />
		</view>
		
		<view class="bottom" style="margin-top: 260rpx;">
			<view class="btn" @click="next">
				<view class="bin-confirm">确认</view>
				<u-icon name="arrow-rightward" color="#fff" size="28"></u-icon>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data: {
					device: '478ca4671a993355',
					sex: '',
					nickname: '',
					birthday: '',
					height: '',
					weight: '',
					career: '',
					income: '',
					save_city: '',
					avatar: '',
					phone: '',
					code: '',
					password: '',
				}
			};
		},
		onLoad() {
			this.data = uni.getStorageSync('registerInfo');
		},
		methods: {
			next() {
				if (!this.data.nickname) {
					this.$common.show('请填写');
					return;
				}
				uni.setStorageSync('registerInfo', this.data);
				uni.navigateTo({
					url: "/pages/register/register2"
				})
			}
		}
	};
</script>

<style lang="scss">
	.content {
		width: 100wh;
		height: 100vh;
		margin: 0 50rpx;

		.title {
			font-weight: bold;
			font-size: 48rpx;
			color: #222;
		}

		.input{
			border-bottom: 1rpx solid #ccc;
			font-size: 32rpx;
			color: #555;
			line-height: 50rpx;
			padding: 20rpx 0;
		}

		.bottom {
			display: flex;
			flex-direction: row;
			justify-content: right;

			.btn {
				display: flex;
				flex-direction: row;
				justify-content: center;
				align-items: center;
				width: 150rpx;
				height: 80rpx;
				background-color: #222;
				border-radius: 10rpx;

				.bin-confirm {
					color: white;
					font-size: 24rpx;
				}
			}
		}

	}
</style>